package com.manage.project.biz.service.impl;

import java.util.List;
import com.manage.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.manage.project.biz.mapper.BizQitasheshizhuanxiangjianchaMapper;
import com.manage.project.biz.domain.BizQitasheshizhuanxiangjiancha;
import com.manage.project.biz.service.IBizQitasheshizhuanxiangjianchaService;

/**
 Service业务层处理
 *
 * @author liutao
 *
 */
@Service
public class BizQitasheshizhuanxiangjianchaServiceImpl implements IBizQitasheshizhuanxiangjianchaService
{
    @Autowired
    private BizQitasheshizhuanxiangjianchaMapper bizQitasheshizhuanxiangjianchaMapper;

    /**
     * 查询其他设施专项检查
     *
     * @param id 其他设施专项检查主键
     * @return 其他设施专项检查
     */
    @Override
    public BizQitasheshizhuanxiangjiancha selectBizQitasheshizhuanxiangjianchaById(Long id)
    {
        return bizQitasheshizhuanxiangjianchaMapper.selectBizQitasheshizhuanxiangjianchaById(id);
    }

    /**
     * 查询其他设施专项检查列表
     *
     * @param bizQitasheshizhuanxiangjiancha 其他设施专项检查
     * @return 其他设施专项检查
     */
    @Override
    public List<BizQitasheshizhuanxiangjiancha> selectBizQitasheshizhuanxiangjianchaList(BizQitasheshizhuanxiangjiancha bizQitasheshizhuanxiangjiancha)
    {
        return bizQitasheshizhuanxiangjianchaMapper.selectBizQitasheshizhuanxiangjianchaList(bizQitasheshizhuanxiangjiancha);
    }

    /**
     * 新增其他设施专项检查
     *
     * @param bizQitasheshizhuanxiangjiancha 其他设施专项检查
     * @return 结果
     */
    @Override
    public int insertBizQitasheshizhuanxiangjiancha(BizQitasheshizhuanxiangjiancha bizQitasheshizhuanxiangjiancha)
    {
        bizQitasheshizhuanxiangjiancha.setCreateTime(DateUtils.getNowDate());
        return bizQitasheshizhuanxiangjianchaMapper.insertBizQitasheshizhuanxiangjiancha(bizQitasheshizhuanxiangjiancha);
    }

    /**
     * 修改其他设施专项检查
     *
     * @param bizQitasheshizhuanxiangjiancha 其他设施专项检查
     * @return 结果
     */
    @Override
    public int updateBizQitasheshizhuanxiangjiancha(BizQitasheshizhuanxiangjiancha bizQitasheshizhuanxiangjiancha)
    {
        bizQitasheshizhuanxiangjiancha.setUpdateTime(DateUtils.getNowDate());
        return bizQitasheshizhuanxiangjianchaMapper.updateBizQitasheshizhuanxiangjiancha(bizQitasheshizhuanxiangjiancha);
    }

    /**
     * 批量删除其他设施专项检查
     *
     * @param ids 需要删除的其他设施专项检查主键
     * @return 结果
     */
    @Override
    public int deleteBizQitasheshizhuanxiangjianchaByIds(Long[] ids)
    {
        return bizQitasheshizhuanxiangjianchaMapper.deleteBizQitasheshizhuanxiangjianchaByIds(ids);
    }

    /**
     * 删除其他设施专项检查信息
     *
     * @param id 其他设施专项检查主键
     * @return 结果
     */
    @Override
    public int deleteBizQitasheshizhuanxiangjianchaById(Long id)
    {
        return bizQitasheshizhuanxiangjianchaMapper.deleteBizQitasheshizhuanxiangjianchaById(id);
    }
}
